<?php
/* @var $this ProfessionController */
/* @var $data Profession */
?>

<style type="text/css">

	table 
		{
		width:100%;
		}
	th
		{
		height:50px;
		}     
	 td
		{
		text-align: <?php if(Yii::app()->language == 'ar')  echo "right"; else echo "left"; ?>;
		}
	
</style>   

<div class="view">

<table>
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($data->name); ?>
	<br />
	</td></tr>
	
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($data->getAttributeLabel('professionType_id')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($data->professionTypeString); ?>
	<br />
	</td></tr>
	
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($data->getAttributeLabel('state_id')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($data->stateString); ?>
	<br />
	</td></tr>
	
	<tr><td style="width:20%">
	<b><?php echo CHtml::encode($data->getAttributeLabel('region_id')); ?>:</b>
	</td><td>
	<?php echo CHtml::encode($data->regionString); ?>
	<br />
	</td></tr>
	
	
	<tr><td >
	<div id="ratingDiv_<?php echo $data->id?>" ></div>
	
	
	 <?php echo  $data->ratesCount.'  '.Yii::t('profession_messages','rating')	 ?> </td></tr>
	
	<tr><td colspan="2" style="text-align: center;">
		<a href="<?php echo  Yii::app()->getBaseUrl(true) ;?>/profession/view/<?php echo $data->id ?> "> <font size="1"><?php echo Yii::t('profession_messages','View.Details')?></font> </a>
	</td></tr>
	
</table>

</div>
<input type="hidden" name="ids" id="id_<?php echo $data->id?>" value="<?php echo $data->avgRate?>" />

